<?php
include 'secure/core.php';
include 'user_header.php';
include 'left.php'; 
?>
		<div id="right">
		<div class="section">
		<?php if($_GET['msg'] == '1') { ?>
		<div class="message green"><span><b>Success</b>: You have successfully logged in.</span></div>
		<?php } ?>
			<div class="btn-box">
				<div class="content">
					<a href="uploads.php" class="item">
						<img src="gfx/icons/big/archive.png" alt="Dashboard" />
						<span>File Manager</span>
						Manage your files
					</a>
					
					<a href="upload.php" class="item">
						<img src="gfx/icons/big/file.png" alt="Messages" />
						<span>Upload</span>
						Upload a File
					</a>
					
					<a href="account.php" class="item">
						<img src="gfx/icons/big/settings.png" alt="Settings" />
						<span>Settings</span>
						Change your settings
					</a>
					
					<a href="referrals.php" class="item">
						<img src="gfx/icons/big/users.png" alt="Referrals" />
						<span>Referrals</span>
						Your Referrals
					</a>
					
					<a href="forums" class="item">
						<img src="gfx/icons/big/support.png" alt="Support" />
						<span>Support</span>
						Check the forum
					</a>
					
	
					
				</div>
			</div>
				<div class="box">
					<div class="title">
						Your Account
						<span class="hide"></span>
					</div>
					<div class="content">
						<table cellspacing="0" cellpadding="0" border="0"> 
							<thead> 
								<tr>
									<th>Files Uploaded</th>
									<th>Total Downloads</th>
									<th>Total Earned</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php echo $files->getTotalUploads($_SESSION['userid']); ?></td>
									<td><?php echo $files->getTotalDownloads($_SESSION['userid']); ?></td>
									<td>$<?php echo $earnings->getUserTotalEarnings($_SESSION['userid']); ?></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>

<?php include 'footer.php'; ?>